package com.springboot.util.http;

/**
 * @description:
 * @author: zyj
 * @create: 2020-07-30 14:22
 **/
public class ResultResponse<T> {
    /**
     * 消息code
     */
    private String code;
    /**
     * 消息描述
     */
    private String msg;

    /**
    * 内容
    */
    private Object t;


    public ResultResponse(){
    }


    public static <T> ResultResponse<T> getInstance(){
//        if(null == resultResponse){
//            resultResponse = new ResultResponse();
//        }
        ResultResponse<T> resultResponse = new ResultResponse<>();
        return resultResponse;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return t;
    }

    public void setData(Object data) {
        this.t = data;
    }

}
